package cn.opopopo.design_pattern_learn.行为型.责任链;

// 5. 具体处理者 - 总监
class Director extends Approver {
    @Override
    public void processRequest(LeaveRequest request) {
        if (request.getDays() <= 30) {
            System.out.println("Director 批准: " + request);
        } else {
            System.out.println("请假天数过多，拒绝: " + request);
        }
    }
}